<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html"%>
<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean"%>
<%@ taglib prefix="logic" uri="http://struts.apache.org/tags-logic"%>
<%@ taglib prefix="core" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="display" uri="http://displaytag.sf.net"%>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="id" lang="id">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>  
</head>
<body onload="setDisableEnable('false');">
	<div class="outerbox">
		<div class="mainHeading">
			<div class=""
				style="width: 280px; height: 32px; background: url(images/formTitleBackground.png) no-repeat top right; font-color: #CC0000;">
				<h2 class="formTitle">GENERAL INFO</h2>
			</div>
		</div>
		<div class="searchbox">
			<html:form action="/organGenInfo.do">
				<div id="formcontent">
					<br class="clear" />
					<table style="width: 100%; padding-bottom: 10px;">
						<tr>
							<td class="txtLabel"><label>Organization Name *</label></td>
							<td><html:text styleClass="readonly" property="name" style="width:170px;"></html:text></td>
							<td class="txtLabel"><label>Tax ID</label></td>
							<td><html:text styleClass="readonly" property="taxId" style="width:170px;"></html:text></td>
							<td class="txtLabel"><label>Number of Employees:</label></td>
							<td style="font-family: Calibri; font-size: 15px; font-weight:bold; vertical-align: top;"><bean:write name="organGenInfo" property="numOfEmp"></bean:write></td>
						</tr>
						<tr>
							<td class="txtLabel"><label>Registration Number</label></td>
							<td><html:text styleClass="readonly" property="registrationNumber" style="width:170px;"></html:text></td>
							<td></td>
							<td></td>
						</tr>
						<tr>
							<td colspan="6"><hr/></td>
							<td></td>
							<td></td>
							<td></td>
						</tr>
						<tr>
							<td class="txtLabel"><label>Phone</label></td>
							<td><html:text styleClass="readonly" property="phone" style="width:170px;"></html:text></td>
							<td class="txtLabel"><label>Email</label></td>
							<td><html:text styleClass="readonly" property="email" style="width:170px;"></html:text></td>
							<td class="txtLabel"><label>Fax</label></td>
							<td><html:text styleClass="readonly" property="fax" style="width:170px;"></html:text></td>
						</tr>
						<tr>
							<td class="txtLabel"><label>Address Street</label></td>
							<td><html:text styleClass="readonly" property="street" style="width:170px;"></html:text></td>
						</tr>
						<tr>
							<td colspan="6"><hr/></td>
							<td></td>
							<td></td>
							<td></td>
						</tr>
						<tr>
							<td class="txtLabel"><label>Province / City</label></td>
						    <td>
								<html:select styleId="provinceId" name="organGenInfo" property="province" styleClass="readonly" style="width:200px;" onchange="linkedComboBox('provinceId', 'districtId');">
									<html:optionsCollection property="allProvinces" label="label" value="value" />
								</html:select>
							</td>
							<td class="txtLabel"><label>District</label></td>
						    <td>
								<html:select styleId="districtId" name="organGenInfo" property="district" styleClass="readonly" style="width:200px;">
									<html:optionsCollection property="allDistricts" label="label" value="value" />
								</html:select>
							</td>
						</tr>
						<tr>
							<td colspan="6"><hr/></td>
							<td></td>
							<td></td>
							<td></td>
						</tr>
						<tr>
							<td class="txtLabel"><label>Note</label></td>
							<td colspan="5"><html:textarea property="note" style="width:235px; height:105px;" styleClass="readonly"></html:textarea></td>
							<td></td>
							<td></td>
						</tr>
					</table>
				</div>
				<div class="actionbar_form" style="border-top: 2px solid #191919;">
					<div class="actionbuttons">
						<logic:equal property="canUpdate" value="true" name="organGenInfo">
							<html:submit styleClass="plainbtn" property="btnUpdate" value="Edit" styleId="btnSave" onclick="return setDisableEnable('true');"></html:submit> 
							<html:reset styleClass="plainbtn">Reset</html:reset>
						</logic:equal> 
						<span style="color: red;font-weight: bold;"><html:errors property="error"/></span>
						<span style="color: blue;font-weight: bold;"><bean:write property="message" name="organGenInfo" /></span>
					</div> 
				</div>
				<br class="clear" />
			</html:form>
		</div>
	</div>
</body>
</html>